package peer.dstdb;

import peer.tools.Mdb;

public class LDB {
	Mdb mdb;
	LoadingDBThread thread;
	static int state_unrun=4;
	static int state_running=5;
	static int state_runned=6;
	int state= state_unrun;
	LDB(Mdb mdb){
		this.mdb=mdb;
	}
	
	int getState(){
		return state;
	}
	
	public void run(){
		thread=new LoadingDBThread(mdb,this);
		state=state_running;
	}
	
	
	public void runComplete(){
		state=state_runned;
	}
	

}
